<?php
namespace app\admin\controller;

use app\admin\model\Menu;

class Index extends Base {
    public function index()
    {
        $list = Menu::select();
        foreach ($list as $key => $value) {
            $list[$key]['url'] = url($list[$key]['url']);
        }
        $this->assign('list', $list);
        return view();
    }

}
